package com.ccb.sc.common.modules.order.vo;

import com.ccb.sc.common.modules.groupon.enums.GrouponStatus;
import com.ccb.sc.common.modules.order.enums.CommentStatus;
import com.ccb.sc.common.modules.order.enums.OrderStatus;
import com.ccb.sc.common.modules.payment.enums.OrderType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-27
 */
@Data
public class OrderListVo implements Serializable {

    @ApiModelProperty("订单id")
    private String id;

    @ApiModelProperty("状态")
    private OrderStatus status;

    @ApiModelProperty("评价状态")
    private CommentStatus commentStatus;

    @ApiModelProperty("订单使用积分")
    private BigDecimal usePoints;

    @ApiModelProperty("奖励阳光值")
    private BigDecimal rewardPoints;

    @ApiModelProperty("实付金额")
    private BigDecimal realAmount;

    @ApiModelProperty("阳光值抵扣")
    private BigDecimal pointsDeductAmount;

    @ApiModelProperty("物流公司")
    private String logisticsCompany;

    @ApiModelProperty("物流单号")
    private String logisticsNo;

    @ApiModelProperty("订单项")
    private List<OrderItemVo> items;

    @ApiModelProperty("订单类型 1积分订单 2店主商城订单 3团购订单")
    private OrderType orderType;

    @ApiModelProperty("团购价格")
    private BigDecimal grouponPrice;

    @ApiModelProperty("团购状态 0拼团中 1拼团失败 2已结束")
    private GrouponStatus grouponStatus;
}
